package _14作业.t2;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;

public class Demo5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        HashMap<String,Integer> map = new HashMap<>();

        for (int i = 0; i < s.length(); i++) {
            char c = s.charAt(i);
            if (c>='A'&&c<='z'){
                countingKey(map,"字母");
            }else if (c>='0'&&c<='9'){
                countingKey(map,"数字");
            }else if(c == ' '){
                countingKey(map,"空格");
            }else {
                countingKey(map,"其他");
            }
        }

        Set<String> keySet = map.keySet();
        for (String s1 : keySet) {
            System.out.println(s1+"="+map.get(s1));
        }

    }
    public static void countingKey(HashMap<String,Integer>hashMap,String key){
        if (hashMap.containsKey(key)){
            Integer integer = hashMap.get(key);
            hashMap.put(key,integer+1);
        }else {
            hashMap.put(key,1);
        }

    }
}
